﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Drawing;

namespace FigureDraw
{
    public class StartSymbolActivity : StartSymbol
    {
        public StartSymbolActivity(StorageDevice sd)
            : base(sd)
        {
            this.strInfor = "";
        }

        public StartSymbolActivity(StorageDevice sd, Infor infor)
            : base(sd, infor)
        {
            this.strInfor = "";
        }

        public override void DrawToDevice(Form form)
        {
            this.R = 255;
            this.G = 0;
            this.B = 0;
            this.LineWidth = 5;

            this.KhoiTaoTruocKhiVe();
            this.EndPoint = new Point(this.BeginPoint.X + 10, this.BeginPoint.Y + 10);
            Point centre = new Point((int)((EndPoint.X + BeginPoint.X)/2), (int)((EndPoint.Y + BeginPoint.Y)/2));
            this.StorageDevice.drawEllipse(centre.X, centre.Y, 5, 5);
            this.StorageDevice.drawEllipse(centre.X, centre.Y, 10, 10);
            this.StorageDevice.drawEllipse(centre.X, centre.Y, 15, 15);
            this.StorageDevice.drawEllipse(centre.X, centre.Y, 20, 20);
            this.StorageDevice.drawEllipse(centre.X, centre.Y, 25, 25);
        }
    }
}
